package cn.lyf.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

//Bean 实现接口 实现初始化和销毁
public class Cat  implements InitializingBean,DisposableBean {

    @Override
    public void destroy() throws Exception {
        // 销毁
        
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        // 初始化
        
    }
    
}
